package com.example.product.dao;

import com.example.api.dto.SysUserDto;
import com.example.api.entity.SysUser;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(String userId);

    int insert(SysUser record);

    /**
     * @Title:
     * @Description 新增
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:58
     */
    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(String userId);

    /**
     * @Title:
     * @Description 修改
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:57
     */
    int updateByPrimaryKeySelective(SysUser sysUser);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByUserName(String userName);

    /**
     * @Title:
     * @Description 分页
     * @param
     * @author zhangning
     * @Date 2019/9/4 14:09
     */
    List<SysUserDto> pageUser(SysUserDto sysUserDto);

    /**
     * @Title:
     * @Description 开启
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:55
     */
    int userLockedOpenById(SysUserDto sysUserDto);

    /**
     * @Title:
     * @Description 关闭（逻辑删除）
     * @param
     * @author zhangning
     * @Date 2019/9/4 16:55
     */
    int userLockedCloseById(SysUserDto sysUserDto);
}